import request from '@/utils/request'


export function createSysDict(data) {
  return request({
    url: '/api/admin/SysDict/save',
    method: 'post',
    data
  })
}

export function delSysDict(id) {
  return request({
    url: '/api/admin/SysDict/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/admin/SysDict/batch/del',
    method: 'post',
    data
  })
}

export function editSysDict(data) {
  return request({
    url: '/api/admin/SysDict/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/admin/SysDict/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageSysDict(query) {
  return request({
    url: '/api/admin/SysDict/getPage',
    method: 'post',
    data: query
  })
}

export function getListSysDict(query) {
  return request({
    url: '/api/admin/SysDict/getList',
    method: 'post',
    data: query
  })
}

export function selectDataByname(){
  return request({
    url: '/api/SysDict/selectDataByname',
    method: 'get',
    params: {}
  })
}

export function getYzSettingList(){
  return request({
    url: '/api/YzSetting/getList',
    method: 'post',
    data: {}
  })
}

export function saveYzSetting(query) {
  return request({
    url: '/api/YzSetting/save',
    method: 'post',
    data: query
  })
}





